#include <iostream>
#include"networkmanager.h"
#include"Json/reader.h"
#include"Json/value.h"
#include"logicfight.h"
#include"logicplayer.h"
#include"logictalk.h"
#include"logicteam.h"
#include"friendlogic.h"
#include<string>
using namespace std;

void initLogicModel()
{
    LogicTeam::getInstance();
    LogicFight::getInstance();
    LogicPlayer::getInstance();
    LogicTalk::getInstance();
    FriendLogic::getInstance();
}

int main()
{
    initLogicModel();
    NetWorkManager::getInstance()->startServer();
    string cmd;
    while(true)
    {
        cin>>cmd;
        if(cmd=="exit")
        {
            cout<<"Exit Server"<<endl;
            break;
        }
    }
    return 0;
}
